//
//  FMResouceDownLoader.h
//  FMRemotePlayer
//
//  Created by apple on 17/3/14.
//  Copyright © 2017年 appbanana. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol FMResouceDownLoaderDelegate <NSObject>

- (void)receiveNewData;

@end

@interface FMResouceDownLoader : NSObject

- (void)downLoadWithUrl:(NSURL *)url offset:(long long)offset;

/**请求文件类型*/
@property (nonatomic, copy) NSString *contentType;

/**请求文件的大小*/
@property (nonatomic, assign) long long totalSize;

/**加载数据的大小*/
@property (nonatomic, assign) long long loadSize;

/**加载数据的节点*/
@property (nonatomic, assign) long long offset;

@property (nonatomic, assign) id<FMResouceDownLoaderDelegate> delegate;

@property (nonatomic, strong) NSURL *url;


@end
